//
//  NSMutableArray+InvalidObject.m
//  供销宝
//
//  Created by poweruser on 2017/6/15.
//  Copyright © 2017年 Stone.Sun. All rights reserved.
//

#import "NSMutableArray+InvalidObject.h"

@implementation NSMutableArray (InvalidObject)

+ (NSMutableArray *)clearInvalidObjiect:(NSMutableArray *)array {
    
    NSMutableArray *tempArray = array;
    for (int i =0;i<tempArray.count; i++) {

        NSString *tempStr = [NSString stringWithFormat:@"%@",tempArray[i]];
        if([tempStr isEqualToString:@"[invalid object]"]) {
            [tempArray removeObjectAtIndex:i];
        }
    }

    return tempArray;
}

@end
